<?php

namespace App\Http\Controllers\DesignPattern\Creational\Structural;

use App\Model\DesignPattern\Creational\Structural\Proxy\LabDoor;
use App\Model\DesignPattern\Creational\Structural\Proxy\SecuredDoor;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class ProxyController extends Controller
{
    public function index($password)
    {
        $res = new SecuredDoor(new LabDoor());
        return $res->open($password);
    }
}
